﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace VietThinks.Contract
{
    public class ConfigurationDto : IdentifiableDto
    {
        public ConfigurationDto() { }

        public ConfigurationDto(int id)
            : this()
        {
            this.Id = id;
        }

        public string Title { get; set; }
		public string Variable { get; set; }

        [Required(ErrorMessage = "The Value field is required")]
		public string Value { get; set; }

		public string Description { get; set; }
		//public int SortOrder { get; set; }
		public DateTime LastModified { get; set; }
		public DateTime DateAdded { get; set; }

        public string ControlType { get; set; }
        public string GroupName { get; set; }
        public int GroupId { get; set; }

        public IList<string> ValueTypes { get; set; }
    }
}
